<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'register.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <script type="text/javascript" src="jquery-1.9.1.js">
</script>
  <script language="javaScript">
  $("#submit1").click(function(){
		alert("ok!");
	}	
	).click();
	


  </script>
  
    
  <body>
   <form name="registerform" action="register" method="post">
   <P>&nbsp;注册</P><P>用户名： <input type="text" id="username" name="username" >
   <label id="userlabel" for="username" >不能为空</label>
   </P><P>&nbsp;性别：<input type="radio" checked="checked" value="男" name="sex">男　
   <input type="radio" value="女" name="sex">女</P><p>&nbsp;
   <input type="button" id="submit1" value="注册q"></p></form> 
  </body>
</html>